package com.sq.util.qrcode;

import java.io.File;

/**
 * @author sq
 *
 */
public class QRCodeUtilDemo {

    public static void main(String[] args) throws Exception {
        String s = QRCodeUtil.decode(new File("E:\\temp\\20170616\\1.jpg"));
        System.out.println(s);
        
        try {
//            String content = "https://www.baidu.com";
//            QRCodeUtil.encode(content, new File("E:/11.jpg"));
//            QRCodeUtil.create(content, "E:\\login-Logo.jpg", new File("E:/11.jpg"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
